﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace Xinnos.Lca.Yacht.Analyzer.View
{
    internal class MemberViewModel:INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private string mName = null;
        private string mEnglish = null;
        private string mMail = null;
        private string mLink = null;
        private string mCodePlexId = null;

        public string Name { get { return mName; } set { mName = value; RaisePropertyChanged("Name"); } }
        public string English { get { return mEnglish; } set { mEnglish = value; RaisePropertyChanged("English"); } }
        public string Mail { get { return mMail; } set { mMail = value; RaisePropertyChanged("Mail"); } }
        public string Link { get { return mLink; } set { mLink = value; RaisePropertyChanged("Link"); } }
        public string CodePlexId { get { return mCodePlexId; } set { mCodePlexId = value; RaisePropertyChanged("CodePlexId"); } }

        public MemberViewModel() { }

        private void RaisePropertyChanged(string strPropertyName)
        {
            PropertyChangedEventHandler _handler = this.PropertyChanged;
            if (null != _handler) _handler(this, new PropertyChangedEventArgs(strPropertyName));
        }
    }
}
